package com.alibaba.nacos.config.server.jpa.repository;

import java.util.List;

import com.alibaba.nacos.config.server.jpa.entity.ConfigTagsRelationEntity;
import org.springframework.stereotype.Repository;

/**
 * @author
 * @date 2020-03-08 23:31
 */
@Repository
public interface ConfigTagsRelationRepository extends BaseRepository<ConfigTagsRelationEntity, Long> {

    List<ConfigTagsRelationEntity> findByTenantId(String tenantId);

    List<ConfigTagsRelationEntity> findAllByDataIdAndGroupIdAndTenantId(
        String dataId, String groupId, String tenantId);
}
